"use strict";

const Controller = require("egg").Controller;

class ScoreController extends Controller {
    /**
     * 添加用户
     */
    async index() {
        const res = await this.service.score.readList();
        this.ctx.body = {
            code: 200,
            data: res,
            message: "请求成功",
        };
    }
}

module.exports = ScoreController;
